package com.easylive.entity.enums;

public enum VideoRecommendTypeEnum {
    NO_RECOMMEND(0, "不推荐"),
    RECOMMED(1, "推荐");
    private Integer type;
    private String desc;
    public Integer getType() {
        return type;
    }
    public String getDesc() {
        return desc;
    }
    VideoRecommendTypeEnum(Integer type, String desc){
        this.type = type;
        this.desc = desc;
    }
    public static VideoRecommendTypeEnum getByType(Integer type){
        for(VideoRecommendTypeEnum e : VideoRecommendTypeEnum.values()){
            if(e.getType().equals(type)){
                return e;
            }
        }
        return null;
    }
}
